package com.weixing.mall.provider.model.dto;

import com.weixing.mall.base.enums.IsEnableEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName CategoryDto
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/8/6
 * @Version 1.0
 **/
@Data
@ApiModel(description = "商品类目")
public class CategoryDto {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "父id")
    @NotNull(message = "父id不能为空")
    private Long parentId;

    @ApiModelProperty(value = "类目名称")
    @NotNull(message = "类目名称不能为空")
    private String catName;

    @ApiModelProperty(value = "类目级别 1一级；2二级；3三级")
    @NotNull(message = "类目级别")
    private Integer catLevel;

    @ApiModelProperty(value = "类目路径")
    @NotNull(message = "类目路径不能为空")
    private String catPath;

    @ApiModelProperty(value = "排序字段")
    @NotNull(message = "排序字段不能为空")
    private Integer orderBy;

    @ApiModelProperty(value = "是否可用")
    @NotNull(message = "是否可用不能为空")
    private IsEnableEnum isEnable;

    @ApiModelProperty(value = "类目图片")
    private String catImg;

    @ApiModelProperty(value = "erpId")
    private String erpId;
    @ApiModelProperty(value = "图片地址")
    private  String  url;
}
